package com.goldfish666.remote_control.service.impl;

import com.goldfish666.remote_control.dto.tv.TVModelDTO;
import com.goldfish666.remote_control.entity.tv.TVModel;
import com.goldfish666.remote_control.repository.TVModelRepository;
import com.goldfish666.remote_control.service.base.AbstractComplexJapService;
import com.goldfish666.remote_control.service.TVModelService;
import com.goldfish666.remote_control.template.TVModelEntity2DTO;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor(onConstructor = @__({@Autowired}))
public class TVModelServiceImpl extends AbstractComplexJapService<TVModelDTO, TVModel, TVModelRepository> implements TVModelService {

    @Override
    public TVModelDTO entityToDto(TVModel entity) {
        return entityToDto(entity, TVModelEntity2DTO.class);
    }

}
